<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>验证码</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .container {
            border: 1px solid #e6e6e6;
            border-radius: 5px;
            padding: 20px;
            background-color: #f9f9f9;
        }
        .header {
            text-align: center;
            margin-bottom: 20px;
        }
        .code {
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            letter-spacing: 5px;
            color: #ff6600;
            margin: 20px 0;
            padding: 10px;
            background-color: #fff;
            border: 1px dashed #ccc;
            border-radius: 5px;
        }
        .footer {
            margin-top: 30px;
            font-size: 12px;
            color: #999;
            text-align: center;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="header">
        <h2>智慧办公系统 - 验证码</h2>
    </div>
    <p>尊敬的用户：</p>
    <p>您正在进行<span th:text="${type == 'register'} ? '注册' : (${type == 'login'} ? '登录' : '忘记密码')"></span>操作，您的验证码为：</p>
    <div class="code" th:text="${code}"></div>
    <p>验证码有效期为10分钟，请勿将验证码泄露给他人。</p>
    <p>如非本人操作，请忽略此邮件。</p>
    <div class="footer">
        <p>智慧办公系统团队</p>
        <p>发送时间：<span th:text="${time}"></span></p>
    </div>
</div>
</body>
</html>